<?php
$this->load->view('includes/header');
?>
<section id="LeapMainWrapper">

    <div id="subheader">

        <h2>Settings</h2>
        <div class="submitWrapper">
                <div class="submit_button">
                    <input type="submit" value="Save changes" class="button" onclick="formSubmit()">
                </div>

                <div class="clearfix"></div>
            </div>
        <div class="clear"></div>
    </div>
    <div class="col">

        <ul class="settings_tab">
            <li ><a href="settings">Profile</a></li> 
            <li ><a  href="settings_password">Password</a></li> 
            <li ><a  href="notifications">Notifications</a></li> 
            <li class="selected"><a class="active" href="sharing">Sharing</a></li>
        </ul>

    </div>
    <div class="col settings">
        <form class="profileInfos" method="post" action="submit_password" autocomplete="off">
            <?php
            if (@$incorrect) {
                echo "<p>" . $incorrect . "</p>";
            }
            ?>
            <!-- site stuff -->	
            <div class="controlgroup margin">
                <h3 class="faded">
                    Sharing Settings
                </h3>

                <div class="controls shareSettings" >                    
                    <p>
                        Your actions on 500px can be posted to Facebook automatically. Post a notification to Facebook when:
                    </p>

                    <div class="sharingBlock">
                        <h4 >You post new content</h4>
                        <div class="shareActions">
                            <ul>
                                <li>
                                    <input type="checkbox" id="uploadMedia" name="uploadMedia" class="regular-checkbox" checked="checked"/><label for="uploadMedia">Post a new photo or video</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="commentMedia" name="commentMedia" class="regular-checkbox" checked="checked"/><label for="commentMedia">Comment on a photo or video</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="likeMedia" name="likeMedia" class="regular-checkbox"checked="checked" /><label for="likeMedia">Like a photo or video</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="faveMedia" name="faveMedia" class="regular-checkbox" checked="checked"/><label for="faveMedia">Fave a photo or video</label>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="sharingBlock">
                        <h4 >You interact with content and users</h4>
                        <div class="shareUpdates">
                            <ul>
                                <li>
                                      <input type="checkbox" id="updateMedia" name="updateMedia" class="regular-checkbox" checked="checked"/><label for="updateMedia">Update status</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="updateProfile" name="updateProfile" class="regular-checkbox" checked="checked"/><label for="updateProfile">Update profile informations</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="likeMedia" name="likeMedia" class="regular-checkbox" checked="checked"/><label for="likeMedia">Like a photo or video</label>
                                </li>
                                <li>
                                    <input type="checkbox" id="faveMedia" name="faveMedia" class="regular-checkbox" checked="checked"/><label for="faveMedia">Fave a photo or video</label>
                                </li>
                            </ul>
                            </ul>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>

            <div class="clearfix"></div>
            
        </form>
    </div>
</section>
<script>
    function formSubmit()
    {
        $("form").submit();
    }
</script>
<?php
$this->load->view('includes/footer');
?>